class CreateSettings < ActiveRecord::Migration
  def self.up
    create_table :settings do |t|
      t.column :blog_id, :integer
      t.column :name, :string, :null => false
      t.column :value, :string, :null => false
    end
    
    add_index :settings, [:blog_id, :name, :value], :unique => true
  end

  def self.down
    drop_table :settings
  end
end
